package com.bootdo.front.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/f")
@Controller
public class FrontController {

    @GetMapping()
    String index() {
        return "front/index";
    }

    @GetMapping("/l")
    String list() {
        return "front/list";
    }


    @GetMapping("/login")
    String login() {
        return "front/login";
    }

    @GetMapping("/user")
    String user() {
        return "front/user";
    }

    @GetMapping("/detail")
    String detail() {
        return "front/detail";
    }

    @GetMapping("/iframe")
    String iframe() {
        return "front/iframe";
    }

    @GetMapping("/wx")
    String wxIndex() {
        return "front/wx/index";
    }

    @GetMapping("/wx/list/{type}")
    String wxList(@PathVariable("type") String type, Model model) {
        model.addAttribute("type",type);
        return "front/wx/list";
    }



}
